package course05

object StringApp {

  def main(args: Array[String]): Unit = {
    val s = "Hello"
    val name = "UZI "
    val team = "Rng"
    println(s+name)  //这种很土，不要用
    // 插值输出字符串-------------------------
    println(s"Hello:$name")
    println(s"Hello$name, Welcome to $team")
    // 多行字符串-------------------------
    val b =
      s"""
        |这是一个多行字符串，
        |Hello Uzi
        |Welcome to $team
      """.stripMargin
    println(b)
  }

}
